package com.save.rpgsavedecode.entry;

public class FileEntry {

    private String filename;

    private String filepath;

    private String originFile;

    public FileEntry() {
    }

    public FileEntry(String filename, String filepath) {
        setFilename(filename);
        this.filepath = filepath;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
        this.originFile = filename.substring(0, filename.lastIndexOf("."));
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public String getOriginFile() {
        return originFile;
    }

    public void setOriginFile(String originFile) {
        this.originFile = originFile;
    }
}
